package com.emm.yixun.openapi.hander;

import java.util.HashMap;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.emm.yixun.common.app.ProjectsPmoResDto;
import com.emm.yixun.openapi.dto.base.BaseRequestDTO;
import com.emm.yixun.openapi.dto.base.BaseResponseDTO;
import com.emm.yixun.openapi.hander.base.CommonAbstractHander;
import com.emm.yixun.system.service.BaseCodeValueServiceFacade;
/**
* @ClassName: PropertyFormsInvalidHander 
* @Description: 下线接口
* @author Administrator 
* @date 2017年5月8日 下午5:25:52 
* @version 1.0
 */
@Service(value = "propertyFormsInvalidHander")
public class PropertyFormsInvalidHander extends CommonAbstractHander{
    
    @Autowired
    private BaseCodeValueServiceFacade baseCodeValueServiceFacade;
    
    @SuppressWarnings("rawtypes")
    @Override
    public BaseResponseDTO doBusiness(BaseRequestDTO reqDto) {
	BaseResponseDTO<ProjectsPmoResDto> res = new BaseResponseDTO<ProjectsPmoResDto>();
	try {
	    @SuppressWarnings("unchecked")
	    HashMap<String, Object> map = (HashMap<String, Object>)reqDto.getParams();
	    res.setResData(baseCodeValueServiceFacade.propertyFormsInvalid(map));
	} catch (Exception e) {
	    ProjectsPmoResDto projectsPmoResDto = new ProjectsPmoResDto();
	    projectsPmoResDto.setCode("000005");
	    projectsPmoResDto.setDesc("接口调用异常");
	    res.setResData(projectsPmoResDto);
	}
	return res;
    }

}
